package ioc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by lv_03575 on 2017/9/21.
 */
public class TestIoc {
    public static void main(String[] args) {
        ApplicationContext context=new AnnotationConfigApplicationContext("ioc");
        HelloService service=context.getBean(HelloService.class);
        service.invokeDao();
    }
}
